package c.d.a.a.c;

import c.d.a.a.e.b;
import c.d.a.a.f.b.d;
import c.d.a.a.f.b.h;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.data.PieEntry;

/* compiled from: PieData */
public class j extends d<h> {
    public d c(int i) {
        return i == 0 ? j() : null;
    }

    public Entry f(b bVar) {
        return j().q0((int) bVar.a);
    }

    public h j() {
        return (h) this.i.get(0);
    }

    public float k() {
        float f = 0.0f;
        for (int i = 0; i < j().i0(); i++) {
            f += ((PieEntry) j().q0(i)).a;
        }
        return f;
    }

    public j(h hVar) {
        super(hVar);
    }
}
